import 'package:ai/util/DioUtil.dart';

import '../response/BaseResponse.dart';
import '../response/CreateResponse.dart';

class LoginService{

  Future<BaseResponse> sendCode(Map<String,dynamic> params) async {
    var response = await DioUtil().post('/member/sendCode',data: params);
    var baseResponse = BaseResponse.fromJson(response.data);
    return baseResponse;
  }

  Future<BaseResponse> login(Map<String,dynamic> params) async {
    var response = await DioUtil().post('/member/login',data: params);
    var baseResponse = BaseResponse.fromJson(response.data);
    return baseResponse;
  }
}